package com.example.bookstore.cart;

import com.example.bookstore.entity.Book;

public class ShoppingCartItem {
	Book item;
	int quantity;

	public ShoppingCartItem(Book anItem) {
		item = anItem;
		quantity = 1;
	}

	public void incrementQuantity() {
		quantity++;
	}

	public void decrementQuantity() {
		quantity--;
	}

	public Book getItem() {
		return item;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
}
